1. /* sdmsmall.cpp by K.Tsuru */
  2. // function ID = DRADIX, BRADIX(e = 0)
  3. /*************************************************************
  4. SDouble class
  5. It sets a value by a small integer v(<radix) and exponent e.
  6. **************************************************************/
  7. #ifndef SN_H
  8. #include "sn.h"
  9. #endif
  10. void SDouble::SetSmall(signed char v, int e){
  11. SetZero();
  12. if(v == 0) return;
  13. if(Type() == REAL){
  14. figure[1] = (fType)abs(v); aTail = aHead = 1;
  15. SetRdxExp(e);
  16. } else {
  17. figure[0] = (fType)abs(v);
  18. }
  19. SetSign((int)v);
  20. }

sdmsmall.cpp : last modifiled at 2017/03/13 14:31:58(559 bytes)
created at 2017/10/07 10:21:14
The creation time of this html file is 2017/10/07 10:30:03 (Sat Oct 07 10:30:03 2017).